//
//  MyRoleTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/21.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyRoleTableViewCell.h"

@implementation MyRoleTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.showPush = YES;
        [self setSepartionLineWith:lineModel_All];
        //
        GLGWImageView * leftRoleImageView = [[GLGWImageView alloc] initWithImageName:@"icon_qiehuanziyoujingliren" inSuperView:self];
        [leftRoleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(self);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(22)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(25)));
        }];
        //
        GLGWLabel * roleLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        roleLabel.text = @"切换为自由经理人";
        [roleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(leftRoleImageView.mas_right).offset(kWidthProportion_In_iPhoneTriploid(12));
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(18));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        GLGWLabel * payMoneyLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        payMoneyLabel.text = @"立即赚钱";
        payMoneyLabel.textAlignment = NSTextAlignmentRight;
        [payMoneyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(34));
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(19));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(17)));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
